Skip to content

修复:(quota)refresh 加版本号 guard 防止 provider 切换时旧请求覆盖 - #25

Merged
LeXwDeX merged 1 commit into
stablefrom
dev
May 12, 2026
Merged

修复:(quota)refresh 加版本号 guard 防止 provider 切换时旧请求覆盖#25
LeXwDeX merged 1 commit into
stablefrom
dev

Conversation

@LeXwDeX

@LeXwDeX LeXwDeX commented May 12, 2026

Copy link
Copy Markdown
Owner

60s setInterval 触发的 async refresh 与 providerID 变化的 createEffect refresh 可能并发;旧 fetch resolve 后会用过期数据覆盖当前 provider 的 显示。每次 refresh 自增 seq,await 后比对,stale 即丢弃。

Issue for this PR

Closes #

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Please provide a description of the issue, the changes you made to fix it, and why they work. It is expected that you understand why your changes work and if you do not understand why at least say as much so a maintainer knows how much to value the PR.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

60s setInterval 触发的 async refresh 与 providerID 变化的 createEffect
refresh 可能并发;旧 fetch resolve 后会用过期数据覆盖当前 provider 的
显示。每次 refresh 自增 seq,await 后比对,stale 即丢弃。
@LeXwDeX
LeXwDeX merged commit 70622b5 into stable May 12, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant